package com.st.event.demo.source.impl;

import com.st.event.demo.enums.HandlerEnum;
import com.st.event.demo.source.EventAttribute;

public class DefaultEventAttribute implements EventAttribute {

    /**
     * 容器bean名称
     */
    private String beanName;

    /**
     * 执行方法
     */
    private String actionMethodName;

    /**
     * 执行器
     */
    private HandlerEnum handler;

    public DefaultEventAttribute(String beanName, String actionMethodName, HandlerEnum handler) {
        this.beanName = beanName;
        this.actionMethodName = actionMethodName;
        this.handler = handler;
    }

    @Override
    public String beanName() {
        return getBeanName();
    }

    @Override
    public String actionMethodName() {
        return getActionMethodName();
    }

    @Override
    public HandlerEnum handler() {
        return getHandler();
    }

    public String getBeanName() {
        return beanName;
    }

    public String getActionMethodName() {
        return actionMethodName;
    }

    public HandlerEnum getHandler() {
        return handler;
    }
}
